package com.zh.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zh.web.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_msg_from")
@ApiModel("消息表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysMsgFrom extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("消息主键")
    private Long id;
    @ApiModelProperty("消息体")
    private String content;
    @ApiModelProperty("消息发送方id")
    private Long fromId;
    @ApiModelProperty("消息类型从字典选择")
    private String type;
    @ApiModelProperty("模板id")
    private Long templateId;
    @ApiModelProperty("消息被接收次数")
    private Integer receiveCount=0;
}